<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<body>
<div th:fragment="purdetail">
  <div aria-labelledby="myLargeModalLabel" class="modal fade bs-example-modal-lg" role="dialog"
       tabindex="-1">
    <div class="modal-dialog modal-lg" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button aria-label="Close" class="close" data-dismiss="modal" type="button"><span
              aria-hidden="true">×</span></button>
          <h4 class="modal-title" id="myLargeModalLabel">商品</h4>
        </div>
        <div class="modal-body">
          <div class="card-body">
            <div class="table-responsive">
              <table class="table table-bordered">
                <thead>
                <tr>
                  <th>序号</th>
                  <th hidden="hidden">id</th>
                  <th>名称</th>
                  <!--    <th>角色图标</th>-->
                  <th>商品规格</th>
                  <!--                                            <th>包装</th>-->
                  <th>计量单位</th>
                  <th>采购数量</th>
                  <th>采购单价</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="good:${goodlist}">

                  <td th:text="${goodStat.index+1}"></td>
                  <td hidden="hidden" th:text="${good.id}"></td>

                  <td th:text="${good.name}"></td>
                  <td th:text="${good.spec}"></td>
                  <!--                                            <td th:text="${good.pk}"></td>-->
                  <td th:text="${unitname[{good.unit}]}"></td>
                  <td> <input class="form-control" id="count" name="count"
                              placeholder="采购数量"  type="text"></td>
                  <td> <input class="form-control" id="price" name="price"
                              placeholder="采购单价"  type="text"></td>

                  <td th:text="${good.comment}"></td>

                  <td>
                    <div class="btn-group">
                      <a class="btn btn-xs btn-default editgood"
                         data-toggle="tooltip"
                         th:href="@{${good.id}}" title="编辑">
                        <i class="mdi mdi-pencil"></i>
                      </a>
                      <a class="btn btn-xs btn-default forbidden"
                         data-toggle="tooltip"

                         th:href="@{${good.id}}" title="禁用">
                        <i class="mdi mdi-alert-outline"></i>
                      </a>
                    </div>
                  </td>
                </tr>

                </tbody>
              </table>
            </div>

          </div>
        </div>
        <div class="modal-footer">
          <button class="btn btn-default" data-dismiss="modal" type="button">关闭</button>
          <button class="btn btn-primary" type="button">点击保存</button>
        </div>
      </div>
    </div>
  </div>
</div>

</body>
</html>
